﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentValidation;

namespace Peak.Web.Controllers.Models
{
  public class LoginDataModelValidator : AbstractValidator<LoginDataModel>
  {
    public LoginDataModelValidator()
    {
      RuleFor(f => f.UserName).NotNull().NotEmpty();
      RuleFor(f => f.Password).NotNull().NotEmpty();
    }
  }
}
